package com.propertree.mailer.bean;

public class MailPublisherConfiguration {

	private static MailPublisherConfiguration mailerConfig;

	private long pausePerMessageInMillis;
	private int blockSize;
	private long pausePerBlockInMiilis;
	private long delayedStartInMillis;
	private String outputFilePath;

	// Future enhancement
	// private int timeOut;
	// private int connections;
	// private int retryCount;
	// private long retryDelayInMillis;

	private MailPublisherConfiguration() {

	}

	public static MailPublisherConfiguration getInstance() {
		if (mailerConfig == null) {
			mailerConfig = new MailPublisherConfiguration();
		}
		return mailerConfig;
	}

	public long getPausePerMessageInMillis() {
		return pausePerMessageInMillis;
	}

	public void setPausePerMessageInMillis(long pausePerMessageInMillis) {
		this.pausePerMessageInMillis = pausePerMessageInMillis;
	}

	public int getBlockSize() {
		return blockSize;
	}

	public void setBlockSize(int blockSize) {
		this.blockSize = blockSize;
	}

	public long getPausePerBlockInMiilis() {
		return pausePerBlockInMiilis;
	}

	public void setPausePerBlockInMiilis(long pausePerBlockInMiilis) {
		this.pausePerBlockInMiilis = pausePerBlockInMiilis;
	}

	public long getDelayedStartInMillis() {
		return delayedStartInMillis;
	}

	public void setDelayedStartInMillis(long delayedStartInMillis) {
		this.delayedStartInMillis = delayedStartInMillis;
	}

	public String getOutputFilePath() {
		return outputFilePath;
	}

	public void setOutputFilePath(String outputFilePath) {
		this.outputFilePath = outputFilePath;
	}

}
